<div class="jumbotron simple">
    <div class="container">
        <h1>Tài khoản <small><?php echo $passwordActionName?></small></h1>
    </div>
</div>
<div id="container-main" class="container">
    <div class="row">
        <div class="col-md-18 col-sm-14">
            <div class="page-header">
                <h3>
                    <i class="fa fa-ellipsis-horizontal"></i>
                    <?php echo $passwordActionName?>
                    <span class="page-header-under danger"></span>
                </h3>
            </div>

            <?php $form=$this->beginWidget('CActiveForm', array(
                    'id'=>'password-form',
                    'enableClientValidation'=>true,
                    'clientOptions'=>array(
                        'validateOnSubmit' => true,
                        'validateOnChange' => true,
                    ),
                    'enableAjaxValidation'=>false,
                    'htmlOptions' => array('class' => 'form-horizontal')
                )); ?>

            <?php if($this->user->password):?>
                <div class="form-group">
                    <?php echo $form->labelEx($model,'oldPassword', array('class' => 'col col-md-8 control-label')); ?>
                    <div class="col-sm-16">
                        <?php echo $form->passwordField($model,'oldPassword',array('autocomplete'=>'off','maxlength'=>255, 'class' => 'form-control')); ?>
                        <?php echo $form->error($model,'oldPassword');?>
                    </div>
                </div> 
                <?php endif?>

            <div class="form-group">
                <?php echo $form->labelEx($model,'newPassword', array('class' => 'col-md-8 col-sm-12 control-label')); ?>
                <div class="col-md-16 col-sm-12">
                    <?php echo $form->passwordField($model,'newPassword',array('autocomplete'=>'off','maxlength'=>255, 'class' => 'form-control')); ?>
                    <?php echo $form->error($model,'newPassword');?>
                </div>
            </div> 


            <div class="form-group">
                <?php echo $form->labelEx($model,'reNewPassword', array('class' => 'col-md-8 col-sm-12 control-label')); ?>
                <div class="col-md-16 col-sm-12">
                    <?php echo $form->passwordField($model,'reNewPassword',array('autocomplete'=>'off','maxlength'=>255, 'class' => 'form-control')); ?>
                    <?php echo $form->error($model,'reNewPassword');?>
                </div>
            </div> 
            <div class="form-group">
                <div class="col-md-offset-8 col-md-16 col-sm-offset-12 col-sm-12">
                    <button class="btn btn-primary" type="submit">
                        <i class="fa fa-sign-in"></i> <?php echo $passwordActionName?>
                    </button> 
                </div>
            </div>
            <?php $this->endWidget(); ?>
            <hr class="visible-xs"/>
        </div>
        <div class="col-md-6 col-sm-10">
            <?php $this->renderPartial('_menu');?>
        </div>
    </div>
</div>